let ws = new WebSocket('ws://192.168.0.103:20014');

ws.addEventListener('open', ev => {
    
})

ws.addEventListener('message', ev => {
    const data = JSON.parse(ev.data);
    
})

export function sendPacket(packet) {
    // ws.send(JSON.stringify(sendPacketBuffer));
    console.log(packet);
}


// test

export function getBuffer() {
    return sendPacketBuffer;
}
